LayoutParams

constructor(c: Context, attrs: AttributeSet)(source)
constructor(width: Int, height: Int)(source)
constructor(source: ViewGroup.MarginLayoutParams)(source)


constructor(width: Int, height: Int, weight: Float)(source)

Creates a new set of layout parameters with the specified width, height and weight.

Parameters

width

the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

height

the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

weight

the weight